cc.Class({
  extends: cc.Component,

  properties: {
    scoreLabel: cc.Label,
  },

  init() {
    this.scoreLabel.string = '0';
  },
  
  updateScore(score) {
    this.scoreLabel.string = score;
  }
});
